import request from '../utils/request';

export const fetchStatus = query => {
    return request({
        url: './submit_status.json',
        method: 'get',
        params: query
    });
};

export const fetchProblem = query => {
    return request({
        url: './problemset.json',
        method: 'get',
        params: query
    });
};

export const fetchHistory = query => {
    return request({
        url: './problem_history.json',
        method: 'get',
        params: query
    });
};
export const fetchContest = query => {
    return request({
        url: './contest_info.json',
        method: 'get',
        params: query
    });
};


